package com.ktg.mes.dv.mapper;

import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.ktg.mes.dv.domain.DvTemperatureData;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * 温度数据Mapper接口
 * 
 * @author byteco
 * @date 2022-11-30
 */
public interface DvTemperatureDataMapper extends BaseMapper<DvTemperatureData>
{
    @Select("SELECT " +
            "   ${selectColumn} " +
            " FROM" +
            " (" +
            "   SELECT" +
            "       ${ew.getSqlSelect}" +
            "   FROM dv_temperature_data c" +
            "   ${ew.customSqlSegment}" +
            "  ) TEMP" +
            "  ORDER BY aday ASC")
    List<Map> chartMinute(@Param(Constants.WRAPPER) Wrapper ew, @Param("selectColumn") String selectColumn);
}
